package com.citasgoo.admin.dao;

import com.citasgoo.admin.entity.SysUserRole;
import com.citasgoo.admin.entity.SysUserRoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface SysUserRoleDao {
    int countByExample(SysUserRoleQuery example);

    int deleteByExample(SysUserRoleQuery example);

    int deleteByPrimaryKey(Integer id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    List<SysUserRole> selectByExample(SysUserRoleQuery example);

    SysUserRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysUserRole record, @Param("example") SysUserRoleQuery example);

    int updateByExample(@Param("record") SysUserRole record, @Param("example") SysUserRoleQuery example);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);

    Set<String> selectRoleByUserId(Integer userId);

    Set<String> selectMenuByUserId(Integer userId);

    List<Integer> findExistUserIdAllUserRole(Integer roleId);
}